import Layout from '@/layout'

const businessRouter = {
  path: '/basicInfo',
  component: Layout,
  redirect: '/basicInfo/wareHouseManage',
  name: 'basicInfo',
  meta: {
    title: '基础资料',
    icon: 'el-icon-notebook-2'
  },
  children: [
    {
      path: 'wareHouseManage',
      component: () => import('@/views/basicInfo/wareHouseManage/wareHouseManage'),
      name: 'AdwareHouseManaged',
      meta: { title: '仓库管理' }
    },
    {
      path: 'add',
      component: () => import('@/views/basicInfo/wareHouseManage/add/add'),
      name: 'Add',
      hidden: true,
      meta: { title: '新增仓库' }
    },
    {
      path: 'edit',
      component: () => import('@/views/basicInfo/wareHouseManage/edit/edit'),
      name: 'edit',
      hidden: true,
      meta: { title: '编辑仓库' }
    },
    {
      path: 'supply',
      component: () => import('@/views/basicInfo/supply'),
      name: 'supply',
      meta: { title: '供应商管理' }
    },
    {
      path: 'customer',
      component: () => import('@/views/basicInfo/customer'),
      name: 'customer',
      meta: { title: '客户管理' }
    },
    {
      path: 'proType',
      component: () => import('@/views/basicInfo/proType'),
      name: 'proType',
      meta: { title: '产品类别' }
    }
  ]
}
export default businessRouter
